EasyUI Forum
May 02, 2024, 03:34:22 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: 1 2 [3] 4 5 6
31  General Category / EasyUI for Vue / treegrid add column row-number fail on: October 09, 2018, 08:09:36 PM
Code:
                    <TreeGrid :checkbox="true" :border="false" :data="menu" idField="id" treeField="name">
                        <GridColumn align="center" cellCss="datagrid-td-rownumber" :width="30">
                            <template slot="body" slot-scope="scope">
                                {{scope.rowIndex + 1}}
                            </template>
                        </GridColumn>
                        <GridColumn field="name" title="权限名称" :width="200"></GridColumn>
                        <GridColumn field="code" title="标识码" :width="200"></GridColumn>
                        <GridColumn field="remark" title="备注" :width="220"></GridColumn>
                    </TreeGrid>

通过控制台调试.consle.log(scope)  里面rowIndex 是undefine
32  General Category / EasyUI for Vue / how to toggle 'panel' collapse or expand on: October 04, 2018, 09:39:19 AM
How the parent component calls the subcomponent 'panel' to toggle the collapse or expand
(请问下,怎么在父组件设置panel状态。折叠或者展开)
Code:

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>EasyUI for Vue</title>
<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/color.css">
<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/vue.css">
    <script src="http://www.jeasyui.com/node_modules/vx-easyui/vue.min.js"></script>
    <script src="http://www.jeasyui.com/node_modules/vx-easyui/babel-polyfill.js"></script>
    <script src="http://www.jeasyui.com/node_modules/vx-easyui/vx-easyui-min.js"></script>
    <script src="http://www.jeasyui.com/node_modules/vx-easyui/babel.min.js"></script>
    <style type="text/css">
        body{
            padding: 20px;
        }
        h2{
            margin: 0 0 20px 0;
        }
        .mycontainer{
            min-width: 700px;
        }
    </style>
</head>
<body>
    <div id="app"></div>
    <script type="text/babel">
    var demobasic={
    template: `
  <div>
    <h2>Basic Panel</h2>
    <Panel ref="panelRef" title="Panel Title" :collapsible="true" :bodyStyle="{padding:'20px'}" style="height:200px">
      <p>Panel Content.</p>
    </Panel>
    <LinkButton @click="toggle">折叠切换</LinkButton>
  </div>
`,
            methods: {
                toggle() {
                    alert('toggle panel collapseState')
                }
            }
}
    var app = new Vue({
    el: '#app',
    template: `<demobasic class="mycontainer"></demobasic>`,
    components: {
    demobasic:demobasic   
            }
    })
    </script>
   
</body>
</html>

33  General Category / EasyUI for Vue / 'messager' component custom ok text does not work properly on: October 01, 2018, 09:03:31 PM
Code:

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>EasyUI for Vue</title>
    <link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/color.css">
    <link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/vue.css">
    <script src="http://www.jeasyui.com/node_modules/vx-easyui/vue.min.js"></script>
    <script src="http://www.jeasyui.com/node_modules/vx-easyui/babel-polyfill.js"></script>
    <script src="http://www.jeasyui.com/node_modules/vx-easyui/vx-easyui-min.js"></script>
    <script src="http://www.jeasyui.com/node_modules/vx-easyui/babel.min.js"></script>
    <style type="text/css">
        body{
            padding: 20px;
        }
        h2{
            margin: 0 0 20px 0;
        }
        .mycontainer{
            min-width: 700px;
        }
    </style>
</head>
<body>
        <div id="app"></div>
    <script type="text/babel">
        var demointeractive={
            template: `
  <div>
        <h2>Interactive Messager</h2>
        <LinkButton @click="confirm()">Confirm</LinkButton>
        <LinkButton @click="prompt()">Prompt</LinkButton>
  </div>
`,
           
  methods: {
    confirm() {
      this.$messager.confirm({
        title: "Confirm",
        msg: "Are you confirm this?",
        ok: '确定',
        cancel:'取消',
        result: r => {
          if (r) {
            alert("confirmed: " + r);
          }
        }
      });
    },
    prompt() {
      this.$messager.prompt({
        title: "Prompt",
        msg: "Please type something",
        result: r => {
          if (r) {
            alert("you type: " + r);
          }
        }
      });
    }
  }
        }
        var app = new Vue({
            el: '#app',
            template: `<demointeractive class="mycontainer"></demointeractive>`,
            components: {
                demointeractive:demointeractive         }
        })
    </script>
   

</body>
</html>


34  General Category / EasyUI for Vue / How to use the 'select' method of the 'tabs' component? on: September 27, 2018, 03:37:32 PM
How to use the 'select' method of the 'tabs' component?
35  General Category / EasyUI for Vue / tabs Context Menu does work on: September 27, 2018, 03:16:25 AM
Code:
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>EasyUI for Vue</title>
<link rel="stylesheet" type="text/css" href="https://www.jeasyui.com/easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="https://www.jeasyui.com/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="https://www.jeasyui.com/easyui/themes/color.css">
<link rel="stylesheet" type="text/css" href="https://www.jeasyui.com/easyui/themes/vue.css">
    <script src="https://www.jeasyui.com/node_modules/vx-easyui/vue.min.js"></script>
    <script src="https://www.jeasyui.com/node_modules/vx-easyui/babel-polyfill.js"></script>
    <script src="https://www.jeasyui.com/node_modules/vx-easyui/vx-easyui-min.js"></script>
    <script src="https://www.jeasyui.com/node_modules/vx-easyui/babel.min.js"></script>
    <style type="text/css">
        body{
            padding: 20px;
        }
        h2{
            margin: 0 0 20px 0;
        }
        .mycontainer{
            min-width: 700px;
        }
    </style>
</head>
<body>
    <div id="app"></div>
    <script type="text/babel">
    var demobasic={
    template: `
  <div>
    <h2>Basic Tabs</h2>
    <Tabs style="height:250px" @contextmenu.prevent="$refs.m1.showContextMenu($event.pageX,$event.pageY)">
      <TabPanel :title="'Tab1'">
        <p>Tab Panel1</p>
      </TabPanel>
      <TabPanel :title="'Tab2'">
        <p>Tab Panel2</p>
      </TabPanel>
      <TabPanel :title="'Tab3'">
        <p>Tab Panel3</p>
      </TabPanel>
      <TabPanel :title="'Help'" :closable="true" iconCls="icon-help">
        <p>This is the help content.</p>
      </TabPanel>
    </Tabs>
        <Menu ref="m1">
            <MenuItem text="New"></MenuItem>
            <MenuItem text="Open">
                <SubMenu>
                    <MenuItem text="Word"></MenuItem>
                    <MenuItem text="Excel"></MenuItem>
                    <MenuItem text="PowerPoint"></MenuItem>
                </SubMenu>
            </MenuItem>
            <MenuItem text="Save" iconCls="icon-save"></MenuItem>
            <MenuItem text="Print" iconCls="icon-print" :disabled="true"></MenuItem>
            <MenuItem text="Exit"></MenuItem>
        </Menu>
  </div>
`,
        }
    var app = new Vue({
    el: '#app',
    template: `<demobasic class="mycontainer"></demobasic>`,
    components: {
    demobasic:demobasic   
       }
    })
    </script>
   
</body>
</html>
36  General Category / EasyUI for Vue / sidemenu component multiple menu bug! on: September 25, 2018, 10:45:53 PM
see example https://www.jeasyui.com/demo-vue/demo.php?cname=layout&pitem=applayout

1. expand the 'mail' and 'Trash' menus.
2. click the top toggle button to collapse the side menu.
3. open sidemenu, 'mail' - 'Trash' menu can't expand
37  General Category / EasyUI for Vue / sidemenu component multiple level menu icon does not work properly on: September 25, 2018, 10:29:06 PM
Code:
menus:[
{
text: "报表中心",
iconCls: "fa fa-wpforms",
state: "closed",
children: [
{
text: '顾客报表',
iconCls: "fa fa-wpforms",
children: [
{
text: "客户消费明细表",
code: 'report.customer.product',
},
{
text: '客户治疗明细表',
code: 'report.customer.cure'
}
]
}
]
}
]

----------------
ps:I can't upload attachments, the prompt is full
38  General Category / EasyUI for Vue / datagrid component not find nowrap attribute on: September 25, 2018, 12:01:26 AM
i want to display the data in a row,in vue version ,datagrid component don't find 'nowrap' attribute
39  General Category / EasyUI for Vue / sidemenu can't be expaned on: September 24, 2018, 07:13:05 PM
sidemenu can't be expaned after quick double click

反复快速点击菜单项"item1"后,菜单无法再次展开.

https://www.jeasyui.com/demo-vue/demo.php?cname=sidemenu&pitem=basic
40  General Category / EasyUI for Vue / how to use datagrid formatter? on: September 22, 2018, 07:11:10 AM
like jquery version:
Code:
			formatter: function(value,row,index){
if (row.user){
return row.user.name;
} else {
return value;
}
}
41  General Category / EasyUI for Vue / Please add a manual attribute to the pagination component layout on: September 18, 2018, 07:31:17 PM
Please add a manual attribute to the pagination component layout
42  General Category / EasyUI for Vue / I have a window component requirement on: September 06, 2018, 10:59:28 PM
我想要实现窗口,最大化、最小化、还原、关闭等操作。jquery版有。vue版是否考虑支持
I want to implement window, maximize, minimize, restore, close, etc. The jquery version has. Does the vue version consider support?

我尝试在对话框组件中,使用slot来操作。但是会出现两个panel-tool元素
I tried to use time slots in the dialog component,But there will be two panel-tool elements
Code:
    <Dialog ref="d1" 
        :title="'Basic Dialog'"
        :dialogStyle="{width:'400px',height:'200px'}"
        :draggable="true"
        :resizable="true"
    >
        <template slot="header">
            <div class="panel-title">
                窗口标题
            </div>
            <div class="panel-tool">
                <a href="javascript:;" class="panel-tool-min"></a>
                <a href="javascript:;" class="panel-tool-max"></a>
            </div>
        </template>
        <p>内容</p>
    </Dialog>
43  General Category / EasyUI for jQuery / Re: use webpack4 load easyui plugins error on: September 05, 2018, 07:14:39 PM
I solved it myself.
update `.babelrc`file
Code:
{
    "presets": ["env"],
    "ignore": [
    "./src/modules/easyui"
    ]
}
44  General Category / EasyUI for jQuery / use webpack4 load easyui plugins error on: September 05, 2018, 04:08:41 AM
Before using webpack1 to load easyui plugin to use normally.
now Upgrade to webpack4,strict mode. can not use `arguments.callee`

Code:
jquery.validatebox.js:96 Uncaught TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them
    at jquery.validatebox.js:96
    at HTMLTextAreaElement.focusEventHandler (jquery.validatebox.js:79)
    at HTMLTextAreaElement.dispatch (event.js:340)
    at HTMLTextAreaElement.elemData.handle (event.js:148)
45  General Category / EasyUI for Vue / Re: datagrid how to set fit or height 100% on: September 04, 2018, 04:28:54 AM
pagination is Invisible
Code:
<Layout>
  <LayoutPanel region="center" style="height:100%" bodyCls="f-column">
    <div class="datagrid-toolbar">
        <DateBox v-model="date_start" format="yyyy-MM-dd" :panelStyle="{width:'250px', height:'250px'}" style="width:110px;"></DateBox>
    </div>
    <DataGrid selectionMode="single" :border="false" :data="data" :striped="true" class="f-full"
          :lazy="true"
          :total="total"
          :loading="loading"
          :pageSize="pageSize"
          :pagination="true"
          :pageLayout="['list','sep','first','prev','next','last','sep','refresh','info']"
          @pageChange="onPageChange($event)"
    >
        <GridColumn align="center" cellCss="datagrid-td-rownumber" width="30">
          <template slot="body" slot-scope="scope">
            {{scope.rowIndex + 1}}
          </template>
        </GridColumn>
        <GridColumn field="name" title="姓名" align="center"></GridColumn>
        <GridColumn field="type" title="受理类型" :width="100" align="center"></GridColumn>
        <GridColumn field="status" title="状态" :width="100" align="center"></GridColumn>
        <GridColumn field="items" title="咨询项目" halign="center"></GridColumn>
        <GridColumn field="date" title="受理日期" :width="100" align="center"></GridColumn>
        <GridColumn field="time" title="预约时间" align="center"></GridColumn>
        <GridColumn field="cometime" title="到院日期" align="center"></GridColumn>
        <GridColumn field="created_at" title="录入时间" align="center"></GridColumn>
        <GridColumn field="ascription" title="咨询人员" :width="100" align="center"></GridColumn>
        <GridColumn field="user_id" title="录入人员" :width="100" align="center"></GridColumn>
    </DataGrid>
  </LayoutPanel>
</Layout>
Pages: 1 2 [3] 4 5 6
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!