|  |  |  | 
|---|
|  |  |  | <template> | 
|---|
|  |  |  | <div class="import-button"> | 
|---|
|  |  |  | <el-button type="primary" @click="$refs.importWindow.open(text)">{{text}}</el-button> | 
|---|
|  |  |  | <ImportWindow :action="action" :template-path="templatePath" :template-name="templateName" ref="importWindow" @download="$emit('download')" @success="handleSuccess"/> | 
|---|
|  |  |  | <el-button @click="$refs.importWindow.open(text)">{{text}}</el-button> | 
|---|
|  |  |  | <ImportWindow :action="action" :template-path="templatePath" :template-name="templateName" ref="importWindow" @success="handleSuccess"/> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  |  | 
|---|